package ooday03.animal;

public class Test {
    public static void main(String[] args) {
//        Fish[] fish1 = new Fish[5];
//        fish1[0] = new Fish("小飞鱼二号",1,"银色");
//        for (int i = 0; i < fish1.length-1; i++) {
//            fish1[i] = new Fish("小飞鱼"+i+"号",i,"白色");
//            System.out.println(fish1[i]);
//            fish1[i].eat();
//            fish1[i].swim();
//            fish1[i].drink();
//        }


//        fish1[4] = new Fish();
//        System.out.println(fish1[4]);


//            Dog[] dogs = new Dog[3];
//            dogs[0] = new Dog("小黑",1,"黑色");
//            dogs[1] = new Dog("小白",2,"白色");
//            dogs[2] = new Dog();
//            System.out.println(dogs[2]);


//            Chick[] chicks = new Chick[5];
//        for (int i = 0; i < chicks.length; i++) {
//            chicks[i] = new Chick("小鸡"+i+"号",i,"黄色");
//            chicks[i].drink();
//            chicks[i].eat();
//            chicks[i].layEggs();
//        }

        Dog dog = new Dog("小十二", 3, "白棕色");
//        dog.eat();
//        dog.homeGuard();
//        dog.drink();

        Chick chick = new Chick("小黄", 1, "黄色");
//        chick.layEggs();
//        chick.eat();
//        chick.drink();

        Fish fish = new Fish("小飞鱼", 2, "银色");
//        fish.eat();
//        fish.swim();
//        fish.drink();

        Animal[] a = new Animal[3];
        a[0] = new Fish();
        a[1] = new Dog();
        a[2] = new Chick("🐥", 1, "黄色");


        Master master = new Master();
        master.feed(fish);
        master.feed(dog);
        master.feed(chick);


    }
}
